package com.koron.plan.web.maintainplan.bean.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.koron.plan.web.common.DeleteFlag;
import com.koron.plan.web.common.Sortable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * (MaintainPlanDispatchWorkerBean)实体类
 *
 * @author twcao
 * @since 2021-08-27 16:23:25
 */
@Data
@ApiModel("水司维保计划-派工信息-工作班成员")
public class MaintainPlanDispatchWorkerBean implements Serializable, DeleteFlag, Sortable {

    private static final long serialVersionUID = 387896147552482675L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("维保计划主键")
    private String planId;

    @ApiModelProperty("派工表ID")
    private String dispatchId;

    @ApiModelProperty("工作班组ID, 随机生成")
    private String teamId;

    @ApiModelProperty("工作成员账号")
    private String worker;

    @ApiModelProperty("工作成员名字")
    @Length(max = 128, message = "名字不得超过128字符")
    private String workerName;

    @ApiModelProperty("工作成员单位")
    private String jobDept;

    @ApiModelProperty("工作成员单位名称")
    private String jobDeptName;

    @ApiModelProperty("人员类型：0：内单位，1：外单位，-1：临时人员")
    private String staffType;

    @ApiModelProperty("顺序")
    private Integer sort;

    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    @JsonIgnore
    @ApiModelProperty(value = "删除标志", hidden = true)
    private Boolean deleteFlag;
}
